package com.bawan.ddbb.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Desc:  论坛用户登录日志领域模型
 * Author: zhengcongchun
 * CreateTime: 2014-05-28 12:58
 * LastModifyTime: 2014-05-28 12:58
 * FinalModifier: zhengcongchun
 * Version: 1.0
 */
@Entity
@Table(name = "t_login_log")
public class LoginLog implements Serializable {
    @Id
    @Column(name = "login_log_id")
    private Integer loginLogId;
    @Column(name = "user_id")
    private Integer userId;
    @Column(name = "visit_ip")
    private String visitIp;
    @Column(name = "login_datetime")
    private Date loginDatetime;

    public LoginLog(){}

    public LoginLog(Integer loginLogId, Integer userId, String visitIp, Date loginDatetime) {
        this.loginLogId = loginLogId;
        this.userId = userId;
        this.visitIp = visitIp;
        this.loginDatetime = loginDatetime;
    }

    public Integer getLoginLogId() {
        return loginLogId;
    }

    public void setLoginLogId(Integer loginLogId) {
        this.loginLogId = loginLogId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getVisitIp() {
        return visitIp;
    }

    public void setVisitIp(String visitIp) {
        this.visitIp = visitIp;
    }

    public Date getLoginDatetime() {
        return loginDatetime;
    }

    public void setLoginDatetime(Date loginDatetime) {
        this.loginDatetime = loginDatetime;
    }
}
